package InventoryNRMProfile;


/**
 * Generated from IDL interface "InventoryUnitShelf".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public abstract class InventoryUnitShelfPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, InventoryNRMProfile.InventoryUnitShelfOperations
{
	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
	static
	{
		m_opsHash.put ( "_get_ManufacturerData", new java.lang.Integer(0));
		m_opsHash.put ( "_get_UserLabel", new java.lang.Integer(1));
		m_opsHash.put ( "_get_ShelfPosition", new java.lang.Integer(2));
		m_opsHash.put ( "_get_ObjectInstance", new java.lang.Integer(3));
		m_opsHash.put ( "_get_VendorName", new java.lang.Integer(4));
		m_opsHash.put ( "_get_DateOfLastService", new java.lang.Integer(5));
		m_opsHash.put ( "_get_InventoryUnitId", new java.lang.Integer(6));
		m_opsHash.put ( "_get_DateOfManufacture", new java.lang.Integer(7));
		m_opsHash.put ( "_get_VersionNumber", new java.lang.Integer(8));
		m_opsHash.put ( "_get_VendorUnitFamilyType", new java.lang.Integer(9));
		m_opsHash.put ( "_get_SlotsInformation", new java.lang.Integer(10));
		m_opsHash.put ( "_get_SerialNumber", new java.lang.Integer(11));
		m_opsHash.put ( "_get_VendorUnitTypeNumber", new java.lang.Integer(12));
		m_opsHash.put ( "_get_ObjectClass", new java.lang.Integer(13));
		m_opsHash.put ( "_set_UserLabel", new java.lang.Integer(14));
	}
	private String[] ids = {"IDL:InventoryNRMProfile/InventoryUnitShelf:1.0","IDL:GenericNRMProfile/Top:1.0","IDL:InventoryNRMProfile/InventoryUnit:1.0"};
	public InventoryNRMProfile.InventoryUnitShelf _this()
	{
		return InventoryNRMProfile.InventoryUnitShelfHelper.narrow(_this_object());
	}
	public InventoryNRMProfile.InventoryUnitShelf _this(org.omg.CORBA.ORB orb)
	{
		return InventoryNRMProfile.InventoryUnitShelfHelper.narrow(_this_object(orb));
	}
	public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
		throws org.omg.CORBA.SystemException
	{
		org.omg.CORBA.portable.OutputStream _out = null;
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // _get_ManufacturerData
			{
			_out = handler.createReply();
			_out.write_string(ManufacturerData());
				break;
			}
			case 1: // _get_UserLabel
			{
			_out = handler.createReply();
			_out.write_string(UserLabel());
				break;
			}
			case 2: // _get_ShelfPosition
			{
			_out = handler.createReply();
			_out.write_string(ShelfPosition());
				break;
			}
			case 3: // _get_ObjectInstance
			{
			_out = handler.createReply();
			_out.write_string(ObjectInstance());
				break;
			}
			case 4: // _get_VendorName
			{
			_out = handler.createReply();
			_out.write_string(VendorName());
				break;
			}
			case 5: // _get_DateOfLastService
			{
			_out = handler.createReply();
			_out.write_string(DateOfLastService());
				break;
			}
			case 6: // _get_InventoryUnitId
			{
			_out = handler.createReply();
			_out.write_string(InventoryUnitId());
				break;
			}
			case 7: // _get_DateOfManufacture
			{
			_out = handler.createReply();
			_out.write_string(DateOfManufacture());
				break;
			}
			case 8: // _get_VersionNumber
			{
			_out = handler.createReply();
			_out.write_string(VersionNumber());
				break;
			}
			case 9: // _get_VendorUnitFamilyType
			{
			_out = handler.createReply();
			_out.write_string(VendorUnitFamilyType());
				break;
			}
			case 10: // _get_SlotsInformation
			{
			_out = handler.createReply();
			InventoryNRMSystem.SlotInfoListTypeHelper.write(_out,SlotsInformation());
				break;
			}
			case 11: // _get_SerialNumber
			{
			_out = handler.createReply();
			_out.write_string(SerialNumber());
				break;
			}
			case 12: // _get_VendorUnitTypeNumber
			{
			_out = handler.createReply();
			_out.write_string(VendorUnitTypeNumber());
				break;
			}
			case 13: // _get_ObjectClass
			{
			_out = handler.createReply();
			_out.write_string(ObjectClass());
				break;
			}
			case 14: // _set_UserLabel
			{
			_out = handler.createReply();
			UserLabel(_input.read_string());
				break;
			}
		}
		return _out;
	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}
